package com.cib.icarus.desensitize.annotation;

import com.cib.icarus.core.consts.IcarusGeneralConsts;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;


/**
 * 按位置脱敏,
 * 如果待处理字符串支持。则默认不进行脱敏。脱敏范围遵循[startBit,endBit)
 *
 * @author goomba
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface BitDesensitize {

    char placeholder() default IcarusGeneralConsts.DEFAULT_PLACEHOLDER_CHAR;

    int startBit() default 0;

    int endBit() default 0;
}
